<?php
 
defined('_JEXEC') or die('Restricted access');

class JHTMLapkipas{
		
	public static function published($name, $active=0, $javascript='',$first = 0){
		if($first == 1)
			$states[] = JHTML::_('select.option', '-1', '- '.JText::_('Select').' -', 'value', 'text');
		
		$states[] = JHTML::_('select.option', '1', JText::_( 'Published' ));
		$states[] = JHTML::_('select.option', '0', JText::_( 'Unpublished' ));
		$state = JHTML::_('select.genericList', $states,$name, 'class="inputbox"  size="1" '.$javascript, 'value', 'text', $active);
		return $state;
	}
}
	